const express = require('express')
const router = express.Router();
const {getAllTeamListController,getGroupListByBranchIdController,getAllBranchListController}=require("../controller/teams")


//获取所有小组信息
router.get("/team",getAllTeamListController)

//获取所有部门信息
router.get("/branch",getAllBranchListController)

//根据部门id查询下属小组信息
router.get("/branch/:branchId",getGroupListByBranchIdController)
module.exports=router
